package com.cy.device.common;

/**
 * @author: jiangwang
 * @created: 2023/10/23 9:21
 */
public class MqttConstants {

    //上行TOPIC template
    public static final String UP_DEVICE_STATE = "/cy/cab/dev/+/offline";//离线上报
    public static final String UP_DEVICE_STATUS = "/cy/cab/dev/+/status";//状态上报
    public static final String UP_DEVICE_EVENT = "/cy/cab/dev/+/eventReport";//事件上报
    public static final String UP_DEVICE_SET_ACK = "/cy/cab/dev/+/configSetAck";//参数设置返回
    public static final String UP_DEVICE_GET_ACK = "/cy/cab/dev/+/configGetAck";//参数读取返回
    public static final String UP_DEVICE_CAPTURE_REPORT = "/cy/cab/dev/+/captureReport";//开门抓拍上报
    public static final String UP_DEVICE_CONTROL_QUERY_ACK = "/cy/cab/dev/+/controlQueryAck";//控制项查询返回
    public static final String UP_DEVICE_CONTROL_ACK = "/cy/cab/dev/+/controlAck";//控制项设置返回

    //下行TOPIC template
    public static final String DOWN_DEVICE_SET = "/cy/cab/dev/%s/configSet";//参数设置
    public static final String DOWN_DEVICE_GET = "/cy/cab/dev/%s/configGet";//参数读取
    public static final String DOWN_DEVICE_CONTROL_QUERY = "/cy/cab/dev/%s/controlQuery";//控制项查询
    public static final String DOWN_DEVICE_CONTROL = "/cy/cab/dev/%s/control";//控制项设置
    public static final String DOWN_DEVICE_STATUS_QUERY = "/cy/cab/dev/%s/statusQuery";//状态查询

}
